# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=waydroid-sensors
pkgver=0_git20210902
pkgrel=1
_commit="d1e1e0edfb198e1edf0c66e2b78689ed5173cdc3"
pkgdesc="Waydroid sensors"
url="https://github.com/waydroid/waydroid-sensors"
# s390x blocked by libgbinder
arch="all !s390x"
license="GPL-3.0-only"
depends="sensorfw"
makedepends="
	cmake
	glib-dev
	libgbinder-dev
	libglibutil-dev
	qt5-qtbase-dev
	samurai
	"
source="https://github.com/waydroid/waydroid-sensors/archive/$_commit/waydroid-sensors-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
349f40bdb7809805cff35ff1c69d9e20ba4939b5eb325928187c85fc3fe28223ffd986f2895ba87957081c0e0aba2f00c461ea6f35606228b01ac52ce04f2d9b  waydroid-sensors-d1e1e0edfb198e1edf0c66e2b78689ed5173cdc3.tar.gz
"
